package com.wjgl.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.domain.User;
import com.wjgl.service.UserService;

public class ListAllUsersAction extends ActionSupport{
	private UserService userService;
	
	private List<User> users;
	public List<User> getUsers() {
		return users;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		users = userService.getAllUsers();
		return SUCCESS;
	}
	
	
}
